LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-26-2010, 07:48 AM   #1
bobbycar
LQ Newbie
 
Registered: Jul 2010
Location: Germany
Posts: 4

Rep: Reputation: 0
Unhappy [Solved] Connection timed out-Debian Lenny & Putty


Hey!
I think this problem was more than 1000 times there and it was solved 999 times. But I tried everything which was posted in this forum, and its not working.
My Problem: If I try to connect with putty to my new debian lenny server, there comes up the error: connection timed out.
The server is in the same network as my pc.
My router has a firewall, but i forwarded port 21 to the server ip.What else can i do?

bobbycar

Last edited by bobbycar; 07-27-2010 at 04:59 AM.
 
Old 07-26-2010, 08:50 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
You want port 22 for SSH, not 21. 21 is FTP.
 
Old 07-26-2010, 09:05 AM   #3
bobbycar
LQ Newbie
 
Registered: Jul 2010
Location: Germany
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you that you try to help me.
Well now i configured it all on port 22 and forwarded port 22 in my router but its not working at all.
I can ping the server and can update the packages. I'm confused!

Last edited by bobbycar; 07-26-2010 at 09:30 AM.
 
Old 07-26-2010, 02:10 PM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Your question is confusing. Is the traffic between the 'PC' (assuming you mean Windows host, here), and your Debian server traversing a router/firewall, or not? If yes, then what is the nature of said firewall/router? Have you established that a SSH server is actually running on the Debian server? To test this, on the Debian host:
Code:
ssh localhost
If that succeeds, then we know the SSH server is running there. If not, then start it. Have you tried connecting from another host on the network? If not, then do so. What happens?
Are you able to connect to the Debian host in any other way: SMB, SFTP, telnet... etc. Does your 'PC' connect successfully to any other host? Any other host on the same network as the Debian host?

Please check all of these, and report your findings. Before a remedy can be suggested, the cause of the problem must first be determined.

--- rod.
 
Old 07-26-2010, 04:02 PM   #5
bobbycar
LQ Newbie
 
Registered: Jul 2010
Location: Germany
Posts: 4

Original Poster
Rep: Reputation: 0
Sorry, i think thats because my english is not that good as it could be.

1.The traffic between my pc(windows vista) and my server is traversing a fritz.box router with a firewall. But in the software-menu I forwarded port 21 to the server.

2. If i type in that command, its asking for my password, after typing in comes up:

Code:
Linux myhostname.mydoian.de 2.6.26-2-686 #1 SMP Mon Jun 21 05:58:44 UTC 2010 i 686
I think thats succsesfull, isnt't it?

3.I already tried to connect from another pc but it did not work. It also said connection timed out. I tried to connect to the debian server with telnet, also a timeout.
4. I have no chance to try to connect to a other server, because i have no acces to other servers. But i can use remotedesktop-connection, dunno if it matters.

Big thanks for a good to understand reply
 
Old 07-26-2010, 05:07 PM   #6
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Okay, it seems that there is a SSH server running on the Debian host. This is good.
You say that you have port-forwarded port 21 in the firewall, however this will not allow SSH traffic. You want port 22; port 21 is for FTP. I can only trust that you are capable of correctly configuring the firewall. Since other clients also seem to be blocked, it seems reasonable to suspect that the firewall is blocking the traffic. If you have root access on the Debian host, you could test to see if SSH traffic is reaching the NIC:
Code:
#  As root:
# (substitute ethernet interface with eht1, eth2, etc. as appropriate)
# Do this while attempting to make a SSH connection from a client host.
tcpdump  -i eth0 port 22
If this reveals that traffic is reaching your Debian host, then you should look into a local firewall issue on the Debian host. If no traffic arrives, then the firewall/router should be suspect. That you do have remote-desktop traffic passing through the firewall suggests that the firewall is functional. If the firewall is capable of dumping a table of it's rules, it may be useful to post those, here (in [CODE ][/CODE] tags, please).

--- rod.
 
Old 07-27-2010, 04:58 AM   #7
bobbycar
LQ Newbie
 
Registered: Jul 2010
Location: Germany
Posts: 4

Original Poster
Rep: Reputation: 0
Lightbulb

Okay, its running now. My mistake
The ip-address was false. Windows resolved the ip-addresse wrong. so i entered everytime the flse ip. Sorry guys and thank you!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
debian Lenny / no web connection ? stu7 Debian 2 05-09-2010 02:25 PM
LXer: How To Upgrade A Debian Etch System (Server & Desktop) To Debian Lenny LXer Syndicated Linux News 0 02-20-2009 04:30 PM
Freshly installed Debian 4.0 only accepting ssh connection from PuTTY. Zombie13 Debian 12 07-23-2007 02:16 PM
sendmail - Connection timed out [dsn=4.0.0 stat=Deferred: Connection timed out] ananthak Linux - Software 0 04-24-2007 07:28 AM
FC5 & PuTTY Connection Problems cousintroy Linux - Newbie 3 06-21-2006 08:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration